﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Foundation
{

    /// <summary>
    /// 动作的支持标准。
    /// </summary>
    public interface IAction
    {
        /// <summary>
        /// 获取动作集合
        /// </summary>
        /// <returns></returns>
        IEnumerable<IButtonItem> GetActionCollection();

        /// <summary>
        /// 执行动作
        /// </summary>
        /// <param name="action">动作名称</param>
        void Execute(IButtonItem action);
    }
}
